package com.method;

/*
定义一个方法判断两个数组是否一样,顺序不同也可以
*/
public class Demo06 {
    public static void main(String[] args) {
        int[] Arr1 = {3, 2, 1};
        int[] Arr2 = {1, 2, 3};
        resout(Arr1, Arr2);
    }

    public static void resout(int[] arr1, int[] arr2) {
        if (arr1.length != arr2.length) {
            System.out.println("两个数组长度不一样肯定不一样！");
            return;
        }

        for (int i = 0; i < arr1.length; i++) {
            for (int j = 0; j < arr2.length; j++) {
                if (arr1[i] == arr2[j]) {

                }else {
                    System.out.println("不同");
                }
            }
        }

    }
}
